﻿using NUnit.Framework;


namespace sp.martin.tests
{
  [TestFixture]
  public class TestMartin
  {
    [Test]
    public void Martin_wird_zu_einem_beliebigen_Eingabetext_hinzugefuegt()
    {
      var sut = new Martin();
      var mock = new MockMartinOutput();

      sut.OnText += mock.ProcessText;

      sut.ProcessText("string");

      Assert.That(mock.Text, Is.EqualTo("stringMartin"));
    }
  }
}
